package util;

import arcade.Trait;

public class TraitFactory {
	

	private static ResourceManager myResources = new ResourceManager("TraitFactory");

	public static Trait getInstance(String role) {
		return (Trait) Reflection.createInstance(myResources.getString(role), role);
	}

	public static void main(String[] args)
	{
		Trait t1 = new Trait("score");
		Trait t2 = TraitFactory.getInstance("score");
		System.out.println(t1);
		System.out.println(t2);
		System.out.println(t1.equals(t2));
	}
}
